{layout name="../common/master"/}
<div id="right">
    <h4 style="border-bottom: 1px solid #ccc;padding-bottom: 3px">当前产品为：<span style="color: deepskyblue">{$data['name']}</span>

        <div class="btn-group" style="margin-left: 30px">
            <a href="{:URL('home/Product/productList?type=list')}" class="btn btn-success">返回</a>
        </div>
    </h4>

    <div class="panel panel-default col-lg-10">
        <div class="panel-heading">
            <h3 class="panel-title">产品详细信息</h3>
        </div>
        <div class="panel-body">
            <table class="table table-hover table-bordered">
                <tbody>
                <tr>
                    <th>产品ID</th>
                    <td>{$data['id']}</td>
                </tr>
                <tr>
                    <th>产品名称</th>
                    <td>{$data['name']}</td>
                </tr>
                <tr>
                    <th>操作人ID</th>
                    <td>{$data['operator_id']}</td>
                </tr>
                <tr>
                    <th>操作人姓名</th>
                    <td>{$data['operator_name']}</td>
                </tr>
                <tr>
                    <th>产品类型</th>
                    {if condition="$data['sort'] eq 1"}
                    <td>0307</td>
                    {elseif condition="$data['sort'] eq 2"/}
                    <td>0314</td>
                    {elseif condition="$data['sort'] eq 3"/}
                    <td>0607</td>
                    {elseif condition="$data['sort'] eq 4"/}
                    <td>0614</td>
                    {elseif condition="$data['sort'] eq 5"/}
                    <td>1007</td>
                    {elseif condition="$data['sort'] eq 6"/}
                    <td>1015</td>
                    {elseif condition="$data['sort'] eq 100"/}
                    <td>EWI</td>
                    {/if}

                </tr>
                {if condition="$data['sort'] eq 100"}
                <tr>
                    <th>分期信息</th>
                    <td>
                        {foreach name="data['product_configuration']" item="vo" key="k"}
                         【 <span>周期：</span>{$vo->repay_period}
                          <span>期数：</span>{$vo->repay_order}
                          <span>钱数：</span>{$vo->repay_money} 】
                        {/foreach}
                    </td>
                </tr>
                {/if}
                <tr>
                    <th>产品权重</th>
                    <td>{$data['plantform']}</td>
                </tr>
                <tr>
                    <th>备注</th>
                    <td>{$data['comment']}</td>
                </tr>

                <tr>
                    <th>价格</th>
                    <td>{$data['price']}</td>
                </tr>
                <tr>
                    <th>是否上架</th>
                    {if condition="$data['is_valid'] eq 0"}
                    <td>未上架</td>
                    {elseif condition="$data['is_valid'] eq 1"/}
                    <td>已上架</td>
                    {/if}
                </tr>
                <tr>
                    <th>产品年利率</th>
                    <td>{$data['product_rate']}</td>
                </tr>
                <tr>
                    <th>产品逾期费率</th>
                    <td>{$data['overdue_rate']}</td>
                </tr>
                <tr>
                    <th>分享的URL</th>
                    <td>{$data['share_url']}</td>
                </tr>
                <tr>
                    <th>信审费用</th>
                    <td>{$data['info_check_fee']}</td>
                </tr>

                <tr>
                    <th>管理费用</th>
                    <td>{$data['manage_fee']}</td>
                </tr>
                <tr>
                    <th>convenience_fee费用</th>
                    <td>{$data['convenience_fee']}</td>
                </tr>
                <tr>
                    <th>产品时长</th>
                    <td>{$data['period']}</td>
                </tr>
                <tr>
                    <th>可申请总量</th>
                    <td>
                       {$data['max_loan']}
                    </td>
                </tr>
                <tr>
                    <th>创建时间</th>
                    <td>{$data['createdAt']}</td>
                </tr>
                <tr>
                    <th>更新时间</th>
                    <td>{$data['updatedAt']}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    </div>

</div>